Credits

Behavior Library by Karl Sigiscar © 2001-2004:

web: http://www.chromelib.com
e-mail: karl.sigiscar@laposte.net

With contribution from Christophe Leske:

web: http://www.director3d.de
e-mail: leske@online.de

"First Person Camera" behavior by Pierre Leroy.
"Explosion Particle FX" and "EyeCandy FX Set". Particle code by Christophe Leske.

Thanks to Christophe Leske, Tom Higgins, Miriam Geller,
George Fox and Amy Wong for their support.


How to install

Uncompress this zip file in the Libs folder of your Director install folder.
Next time you launch Director, a new entry - Chrome Lib -
will appear in the Director Behavior Library.

There are 6 sections : 3D, Flash, QuickTime, Sound, Navigation and Parent Scripts.

Developers can use the parent scripts in the Parent Scripts section.
Drag'n'drop the parent script directly in your projects' internal cast
and write an initialization script to create instances.


User Manual


Using subsequent behaviors in the score

It is very useful to assign differents sets of behaviors to the
same 3D sprite overtime in the score. For example, a first
occurrence of the sprite could have a "Load models into the scene"
behavior attached to it. Then, a second occurrence of the same
3D sprite in the score could have a "Model Position" behavior
attached to it. Finally, a third occurrence may have an
"Interpolate model to transform" attached. There can be as many
subsequent occurences of the same 3D sprite in the score, allowing
you to create as many sets of behaviors as you need for your
project. The Property inspector in Director allows you to see
what behaviors are attached with each occurrence of the 3D sprite
in the score.



 Holding on a frame

Most "Chrome Lib" behaviors require that you hold
on a frame so they can work correctly.

To this end, use the "Hold on Current Frame" behavior
in the Director "Navigation" behavior library.


Setting up behaviors with dynamic parameters

Every so often, you want to set up a behavior whose one parameter
is created on the fly. For example, you want a target camera to
follow a model that is loaded using the "Load Models into the Scene"
behavior. Run the movie once. The model is loaded into the scene.
Then affect the extra behavior acting on this model to a new occurence
of the same 3D sprite. Restart the movie from the beginning. The new
behavior has been affected to the model loaded on the fly.


Entering precise values

If you cannot enter the exact values you want using the sliders in some behaviors,
you can still type the precise value using the text field for each parameter in
the behavior pane of the property window. The lowest value you can enter is 0.01




  Behavior Trigger from UI

This behavior allows you to control behaviors at runtime
by calling a handler on a behavior already assigned to a given W3D sprite.
You do not need to code anymore in order to control behaviors !

As any other sprite, a W3D sprite has a script instance list at runtime.
It is a list of the behaviors that have been dragged and dropped onto it.
You can access the script instance list in order to reach a given behavior
and call one of its handlers in order to control the behavior directly as
opposed to using the behavior's predefined controls (e.g pressing a key).

- Check the Behavior tab in the Property Inspector

- If you have at least one behavior attached to your W3D sprite,
the index of the behavior you want to control is the one given by
the order of the list.

You can then assign the Behavior Trigger from UI behavior to either an image,
a button or a text sprite in the user interface of your project e.g to switch
to the previous or next camera when the button is pressed
('Change Camera' behavior): the handler call would be respectively
previousCamera() and nextCamera().


  Overlay Button UI

This behavior allows you to display a multistate button or a group of buttons
on top of the 3D scene. The different states are created from bitmaps:
normal, rollover, pressed and selected.

When the button is pressed, the behavior calls a given handler from another,
already assigned behavior. In this respect, this behavior is similar to
Behavior Trigger from UI.


  Flash Control from Model

This behavior allows you to jump to a frame in a Flash sprite
when the user clicks on or rolls over a given model. This allows you to add
contextual 2D information/animation to a 3D scene which is very useful
to build an application. Basically, it means controlling Flash from Shockwave 3D.


  Go to URL with Rollover

This behavior allows you to create a 3D based navigation interface.
When the user rolls the mouse over a given model, it is highlighted.
When the user clicks, it links to a given URL, either targetting
the current window, a given window, a given frame
or by opening a popup window.



Compatibility

Forecasting and managing the interdepencies between the existing behaviors in the
Chrome Lib and your own code is something impossible to achieve. There are
necessarily side effects you will have to deal with. You have to understand each
individual behavior can show you the code to achieve an action or an FX, but it is
up to you to blend this code with yours so they work together. Behaviors only
projects should be kept simple. If your project is complex, it is best to use parent
scripts instead. Existing behaviors can be turned into parent scripts.
Some of the FX available in the Chrome Lib are also available as parent scripts.
The Chrome Lib has not been designed to work together with the
Trigger behaviors of the standard Director 3D library.


Legal Notice

Karl Sigicar grants you ("Licensee") a non-exclusive, royalty free, license to use,
modify and redistribute this software in source code form,
provided that i) this copyright notice and license appear on all copies of
the software; and ii) Licensee does not utilize the software in a manner
which is disparaging to Karl Sigicar.

This software is provided "AS IS," without a warranty of any kind. ALL
EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
NON-INFRINGEMENT, ARE HEREBY EXCLUDED. KARL SIGISCAR AND ITS LICENSORS SHALL NOT BE
LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL Karl Sigicar OR ITS
LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
OR INABILITY TO USE SOFTWARE, EVEN IF KARL SIGISCAR HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

This software is not designed or intended for use in on-line control of
aircraft, air traffic, aircraft navigation or aircraft communications; or in
the design, construction, operation or maintenance of any nuclear
facility. Licensee represents and warrants that it will not use or
redistribute the Software for such purposes.


RealVideo® is a registered trademark of RealNetworks, Inc.

QuickTime and the QuickTime Logo are trademarks of Apple Computer, Inc.,
registered in the U.S. and other countries.

Macromedia, Macromedia Flash™, Macromedia Director™ and Shockwave™
are registered trademarks of Macromedia, Inc. in the U.S. and/or other countries.

Chrome Lib for Macromedia Shockwave 3D
Copyright (c) 2001-2004 by Karl Sigicar. All Rights Reserved.